// Copyright (C) Kumo inc. and its affiliates.
// Author: Jeff.li lijippy@163.com
// All rights reserved.
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published
// by the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program.  If not, see <https://www.gnu.org/licenses/>.
//

#pragma once

#include <nebula/types/fundamental.h>

namespace nebula {

    /// Concrete type class for unsigned 8-bit integer data
    class TURBO_EXPORT UInt8Type
            : public detail::IntegerTypeImpl<UInt8Type, Type::UINT8, uint8_t> {
    public:
        static constexpr const char *type_name() { return "uint8"; }

    protected:
        std::string compute_fingerprint() const override;
    };

    /// Concrete type class for signed 8-bit integer data
    class TURBO_EXPORT Int8Type
            : public detail::IntegerTypeImpl<Int8Type, Type::INT8, int8_t> {
    public:
        static constexpr const char *type_name() { return "int8"; }

    protected:
        std::string compute_fingerprint() const override;
    };

    /// Concrete type class for unsigned 16-bit integer data
    class TURBO_EXPORT UInt16Type
            : public detail::IntegerTypeImpl<UInt16Type, Type::UINT16, uint16_t> {
    public:
        static constexpr const char *type_name() { return "uint16"; }

    protected:
        std::string compute_fingerprint() const override;
    };

    /// Concrete type class for signed 16-bit integer data
    class TURBO_EXPORT Int16Type
            : public detail::IntegerTypeImpl<Int16Type, Type::INT16, int16_t> {
    public:
        static constexpr const char *type_name() { return "int16"; }

    protected:
        std::string compute_fingerprint() const override;
    };


    /// Concrete type class for unsigned 32-bit integer data
    class TURBO_EXPORT UInt32Type
            : public detail::IntegerTypeImpl<UInt32Type, Type::UINT32, uint32_t> {
    public:
        static constexpr const char *type_name() { return "uint32"; }

    protected:
        std::string compute_fingerprint() const override;
    };

    /// Concrete type class for signed 32-bit integer data
    class TURBO_EXPORT Int32Type
            : public detail::IntegerTypeImpl<Int32Type, Type::INT32, int32_t> {
    public:
        static constexpr const char *type_name() { return "int32"; }

    protected:
        std::string compute_fingerprint() const override;
    };



    /// Concrete type class for unsigned 64-bit integer data
    class TURBO_EXPORT UInt64Type
            : public detail::IntegerTypeImpl<UInt64Type, Type::UINT64, uint64_t> {
    public:
        static constexpr const char *type_name() { return "uint64"; }

    protected:
        std::string compute_fingerprint() const override;
    };

    /// Concrete type class for signed 64-bit integer data
    class TURBO_EXPORT Int64Type
            : public detail::IntegerTypeImpl<Int64Type, Type::INT64, int64_t> {
    public:
        static constexpr const char *type_name() { return "int64"; }

    protected:
        std::string compute_fingerprint() const override;
    };

}  // namespace nebula
